﻿capital = 508
set_research_slots = 4
2000.1.1 = {
	capital = 508
	if = {
		limit = { has_dlc = "No Step Back" }

		set_oob = "SIA_2000_nsb"
	}
	if = {
		limit = { NOT = { has_dlc = "No Step Back" } }

		set_oob = "SIA_2000_nonnsb"
	}
	set_cosmetic_tag = SIA
	set_country_flag = dynamic_flag
	set_country_flag = dynamic_rebel_flag
	if = {
		limit = {
			has_dlc = "Man the Guns"
		}
		set_naval_oob = "SIA_2000_naval_mtg"
		else = {
			set_naval_oob = "SIA_2000_naval_legacy"
		}
	}
	set_convoys = 15

	add_ideas = ASEAN_Member
	add_ideas = {
		#pop_050
		systematic_corruption
		buddism

		stable_growth
		defence_02
		edu_04
		health_02
		social_02
		bureau_03
		police_03
		partial_draft_army
		volunteer_women
		the_military
		landowners
		small_medium_business_owners
		mixed_economy
		officer_advanced_training
	}

	add_timed_idea = { idea = asian_crisis days = 1765 }

	#Influence system
	init_influence = yes
	set_variable = { domestic_influence_amount = 210 }
	add_to_array = { influence_array = CHI.id }
	add_to_array = { influence_array_val = 47 }
	add_to_array = { influence_array = RAJ.id }
	add_to_array = { influence_array_val = 18 }
	add_to_array = { influence_array = USA.id }
	add_to_array = { influence_array_val = 53 }
	add_to_array = { influence_array = JAP.id }
	add_to_array = { influence_array_val = 16 }
	add_to_array = { influence_array = IND.id }
	add_to_array = { influence_array_val = 4 }
	add_to_array = { influence_array = TAI.id }
	add_to_array = { influence_array_val = 4 }
	add_to_array = { influence_array = SIN.id }
	add_to_array = { influence_array_val = 8 }
	startup_influence = yes

	set_variable = { landowners_opinion = 60 }
	set_variable = { small_medium_business_owners = 75 }

	set_variable = { var = debt value = 349 }
	set_variable = { var = treasury value = 48 }
	set_variable = { var = corporate_tax_rate value = 20 }
	set_variable = { var = population_tax_rate value = 17 }
	set_variable = { var = int_investments value = 0 }


	add_opinion_modifier = { target = CHI modifier = bamboo_network }

	add_opinion_modifier = { target = MAY modifier = large_commercial_relations }
	reverse_add_opinion_modifier = { target = MAY modifier = large_commercial_relations }
	add_opinion_modifier = { target = JAP modifier = large_commercial_relations }
	reverse_add_opinion_modifier = { target = JAP modifier = large_commercial_relations }

	set_technology = {
		integrated_transportation_system = 1
		post_conventional_rail = 1
		early_freight_locomotive = 1

		legacy_doctrines = 1
		infantry_mass_assault = 1

		infantry_weapons = 1
		infantry_weapons1 = 1
		support_weapons = 1
		special_forces = 1

		command_control_equipment = 1

		land_Drone_equipment = 1

		Anti_tank_0 = 1

		Heavy_Anti_tank_0 = 1

		Anti_Air_0 = 1

		combat_eng_equipment = 1

		Early_APC = 1

		IFV_1 = 1

		APC_1 = 1

		Rec_tank_0 = 1

		util_vehicle_0 = 1
		util_vehicle_1 = 1
		util_vehicle_2 = 1

		SP_arty_0 = 1

		artillery_0 = 1

		early_helicopter = 1
		attack_helicopter1 = 1
		transport_helicopter1 = 1

		SP_Anti_Air_0 = 1

		early_fighter = 1

		MR_Fighter1 = 1

		night_vision_1 = 1
		night_vision_2 = 1

		body_armor_1980 = 1
		camouflage = 1
		camouflage2 = 1

		basic_computing = 1
		integrated_circuit = 1
		computing1 = 1
		decryption1 = 1
		encryption1 = 1

		radar = 1
		internet1 = 1 	#1G
		gprs = 1
		fuel_silos = 1
	}
	if = {
		limit = { has_dlc = "No Step Back" }

		set_technology = {
			mbt_tech = 1
		}
	}
	if = {
		limit = { NOT = { has_dlc = "No Step Back" } }

		set_technology = {
			MBT_1 = 1
		}
	}
	if = {
		limit = {
			not = { has_dlc = "Man the Guns" }
		}
		set_technology = {
			#Basic generic package for purchases to work
			corvette_1 = 1
			frigate_1 = 1
			submarine_1 = 1
			diesel_attack_submarine_1 = 1
			landing_craft = 1
			modern_carrier_0 = 1
			LPD_0 = 1		}
	}
	if = {
		limit = {
			has_dlc = "Man the Guns"
		}
		set_technology = {
			corvette_hull_1 = 1
			corvette_hull_2 = 1

			frigate_hull_1 = 1
			frigate_hull_2 = 1
			frigate_hull_3 = 1

			destroyer_hull_1 = 1
			destroyer_hull_2 = 1

			helicopter_operator_hull_1 = 1

			carrier_hull_1 = 1

			attack_submarine_hull_1 = 1
			attack_submarine_hull_2 = 1

			missile_submarine_hull_1 = 1

			aircraft_carrier_engineering = 1
			aircraft_heli_engineering_1 = 1

			tech_submarine_engineering = 1

			tech_naval_systems_engineering = 1
			tech_power_systems = 1
			tech_power_systems_1 = 1

			tech_combat_support_systems = 1
			tech_fire_control = 1
			tech_fire_control_1 = 1
			tech_combat_radar = 1
			tech_combat_radar_1 = 1
			tech_combat_sonar = 1
			tech_combat_sonar_1 = 1

			tech_early_naval_weapon_systems = 1
			tech_naval_weapon_systems = 1
			tech_light_guns = 1
			tech_light_guns_1 = 1
			tech_light_guns_2 = 1
			tech_127mm_guns = 1
			tech_127mm_guns_1 = 1

			tech_point_defense_system = 1
			tech_point_defense_system_1 = 1
			tech_point_defense_system_2 = 1

			tech_missile_systems = 1
			tech_turret_missiles_surface = 1
			tech_turret_missiles_surface_1 = 1

			tech_turret_missiles_aa = 1
			tech_turret_missiles_aa_1 = 1
			tech_turret_missiles_aa_2 = 1

			tech_vls_surface = 1
			tech_vls_surface_1 = 1

			tech_vls_aa = 1
			tech_vls_aa_1 = 1

			tech_torpedoes = 1
			tech_torpedoes_1 = 1
			tech_torpedoes_2 = 1

			tech_mtg_landing_craft = 1
		}
	}

	set_popularities = {
		democratic = 61.0
		communism = 0.0
		fascism = 0.0
		neutrality = 9.9
		nationalist = 29.1
	}
	set_politics = {
		ruling_party = democratic
		last_election = "1996.11.17"
		election_frequency = 48
		elections_allowed = yes
	}

	start_politics_input = yes

	### Party Popularities
	set_variable = { party_pop_array^0 = 0 } #Western_Autocracy
	set_variable = { party_pop_array^1 = 0.418 } #conservatism
	set_variable = { party_pop_array^2 = 0.192 } #liberalism
	set_variable = { party_pop_array^3 = 0 } #socialism
	set_variable = { party_pop_array^4 = 0 } #Communist-State
	set_variable = { party_pop_array^5 = 0 } #anarchist_communism
	set_variable = { party_pop_array^6 = 0 } #Conservative
	set_variable = { party_pop_array^7 = 0 } #Autocracy
	set_variable = { party_pop_array^8 = 0 } #Mod_Vilayat_e_Faqih
	set_variable = { party_pop_array^9 = 0 } #Vilayat_e_Faqih
	set_variable = { party_pop_array^10 = 0 } #Kingdom
	set_variable = { party_pop_array^11 = 0 } #Caliphate
	set_variable = { party_pop_array^12 = 0 } #Neutral_Muslim_Brotherhood
	set_variable = { party_pop_array^13 = 0 } #Neutral_Autocracy
	set_variable = { party_pop_array^14 = 0.099 } #Neutral_conservatism
	set_variable = { party_pop_array^15 = 0 } #oligarchism
	set_variable = { party_pop_array^16 = 0 } #Neutral_Libertarian
	set_variable = { party_pop_array^17 = 0 } #Neutral_green
	set_variable = { party_pop_array^18 = 0 } #neutral_Social
	set_variable = { party_pop_array^19 = 0 } #Neutral_Communism
	set_variable = { party_pop_array^20 = 0.291 } #Nat_Populism
	set_variable = { party_pop_array^21 = 0 } #Nat_Fascism
	set_variable = { party_pop_array^22 = 0 } #Nat_Autocracy
	set_variable = { party_pop_array^23 = 0 } #Monarchist

	### Ruling Party
	add_to_array = { ruling_party = 1 }

	startup_politics = yes

	create_country_leader = {
		name = "Chaun Leekpai"
		picture = "Chuan_Leekpai.dds"
		ideology = conservatism
		traits = {
			western_conservatism
		}
	}
	set_variable = { term_limit = 2 }
	set_variable = { current_term = 1 }
	
	recruit_character = SIA_surayud_chulanont
	recruit_character = SIA_somtat_attanand
	recruit_character = SIA_chaiyasit_shinawatra
	recruit_character = SIA_prawit_wongsuwan
	recruit_character = SIA_sonthi_boonyaratglin
	recruit_character = SIA_anupong_paochinda
	recruit_character = SIA_thanasak_patimaprakorn
	recruit_character = SIA_sanan_tuatip
	recruit_character = SIA_pong_manesilp
	recruit_character = SIA_kongsak_vantana
	recruit_character = SIA_chalerm_choomchuensook
	recruit_character = SIA_chalit_pukbhasuk
	recruit_character = SIA_thira_hao_charoen
	recruit_character = SIA_prasert_boonsong
	recruit_character = SIA_taweesak_somapha
	recruit_character = SIA_chumpol_patchusanont
	recruit_character = SIA_sathiraphan_keyanon
	
	#############################################
	#MTG Variants
	##############
	if = {
		limit = { has_dlc = "Man the Guns" }

		#Tapi Class https://en.wikipedia.org/wiki/Tapi-class_corvette
		create_equipment_variant = {
			name = "Tapi Class"
			type = corvette_hull_1
			#name_group = SIA_DD_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_engine_slot = module_light_surface_diesel_power
				fixed_ship_fire_control_system_slot = module_analog_fire_control
				fixed_ship_radar_slot = module_radar_1
				fixed_ship_auxillary_slot = module_asm_1
				fixed_ship_battery_slot = module_76mm_gun_1
				front_1_custom_slot = module_torpedoes_1
				rear_1_custom_slot = module_anti_submarine_mortar

			}
		}



	}
	#############################################
}

2017.1.1 = {
	capital = 508
	if = {
		limit = { has_dlc = "No Step Back" }

		set_oob = "SIA_2017_nsb"
	}
	if = {
		limit = { NOT = { has_dlc = "No Step Back" } }

		set_oob = "SIA_2017_nonnsb"
	}
	if = {
		limit = {
			has_dlc = "Man the Guns"
		}
		set_naval_oob = "SIA_2017_naval_mtg"
		else = {
			set_naval_oob = "SIA_2017_naval_legacy"
		}
	}
	set_convoys = 15

	add_ideas = {
		#pop_050
		systematic_corruption
		buddism

		stable_growth
		defence_02
		edu_04
		health_02
		social_02
		bureau_03
		police_03
		partial_draft_army
		volunteer_women
		Major_Non_NATO_Ally
		the_military
		landowners
		small_medium_business_owners
		#civil_law
		#tax_cost_19
	}

	remove_ideas = { asian_crisis }

	#Influence system
	init_influence = yes
	set_variable = { domestic_influence_amount = 210 }
	add_to_array = { influence_array = CHI.id }
	add_to_array = { influence_array_val = 77 }
	add_to_array = { influence_array = RAJ.id }
	add_to_array = { influence_array_val = 28 }
	add_to_array = { influence_array = USA.id }
	add_to_array = { influence_array_val = 13 }
	add_to_array = { influence_array = JAP.id }
	add_to_array = { influence_array_val = 16 }
	add_to_array = { influence_array = IND.id }
	add_to_array = { influence_array_val = 4 }
	add_to_array = { influence_array = TAI.id }
	add_to_array = { influence_array_val = 4 }
	add_to_array = { influence_array = SIN.id }
	add_to_array = { influence_array_val = 8 }
	startup_influence = yes

	#set_country_flag =
	set_country_flag = Major_Non_NATO_Ally
	set_country_flag = Major_Importer_UKR_Arms
	set_variable = { landowners_opinion = 60 }
	set_variable = { small_medium_business_owners = 75 }

	set_variable = { var = debt value = 213 }
	set_variable = { var = treasury value = 172 }
	set_variable = { var = int_investments value = 0 }
	set_variable = { var = corporate_tax_rate value = 20 }
	set_variable = { var = population_tax_rate value = 17 }

	#Nat focus






	add_opinion_modifier = { target = CHI modifier = asean_plus_three_relations }
	reverse_add_opinion_modifier = { target = CHI modifier = asean_plus_three_relations }
	add_opinion_modifier = { target = KOR modifier = asean_plus_three_relations }
	reverse_add_opinion_modifier = { target = KOR modifier = asean_plus_three_relations }
	add_opinion_modifier = { target = JAP modifier = asean_plus_three_relations }
	reverse_add_opinion_modifier = { target = JAP modifier = asean_plus_three_relations }

	# Starting tech
	set_technology = {

		#First Wind
		util_vehicle_3 = 1
		util_vehicle_4 = 1

		SP_R_arty_0 = 1
		SP_R_arty_1 = 1

		microprocessors = 1
		computing2 = 1
		decryption2 = 1
		encryption2 = 1
		computing3 = 1
		decryption3 = 1
		encryption3 = 1
		DNA_fingerprinting = 1

		internet2 = 1 	#2G
		gprs = 1
		wifi = 1
		internet3 = 1	#3G
		edge = 1
		umts = 1
		hsupa = 1
		internet4 = 1	#4G
		lte = 1
	}
	if = {
		limit = {
			not = { has_dlc = "Man the Guns" }
		}
		set_technology = {
			#Basic generic package for purchases to work
			corvette_1 = 1
			frigate_1 = 1
			submarine_1 = 1
			diesel_attack_submarine_1 = 1
			missile_frigate_2 = 1
			missile_frigate_4 = 1
			landing_craft = 1
			modern_carrier_0 = 1
			LPD_0 = 1		}
	}
	if = {
		limit = {
			has_dlc = "Man the Guns"
		}
		set_technology = {
			corvette_hull_1 = 1
			corvette_hull_2 = 1

			frigate_hull_1 = 1
			frigate_hull_2 = 1
			frigate_hull_3 = 1
			frigate_hull_4 = 1

			destroyer_hull_1 = 1
			destroyer_hull_2 = 1
			destroyer_hull_3 = 1

			cruiser_hull_1 = 1

			helicopter_operator_hull_1 = 1
			helicopter_operator_hull_2 = 1

			carrier_hull_1 = 1

			attack_submarine_hull_1 = 1
			attack_submarine_hull_2 = 1
			attack_submarine_hull_3 = 1

			missile_submarine_hull_1 = 1
			missile_submarine_hull_2 = 1

			aircraft_carrier_engineering = 1
			aircraft_heli_engineering_1 = 1
			aircraft_heli_engineering_2 = 1

			tech_submarine_engineering = 1

			tech_naval_systems_engineering = 1
			tech_power_systems = 1
			tech_power_systems_1 = 1

			tech_combat_support_systems = 1
			tech_fire_control = 1
			tech_fire_control_1 = 1
			tech_fire_control_2 = 1
			tech_combat_radar = 1
			tech_combat_radar_1 = 1
			tech_combat_radar_2 = 1
			tech_combat_sonar = 1
			tech_combat_sonar_1 = 1
			tech_combat_sonar_2 = 1

			tech_naval_weapon_systems = 1
			tech_light_guns = 1
			tech_light_guns_1 = 1
			tech_light_guns_2 = 1
			tech_127mm_guns = 1
			tech_127mm_guns_1 = 1
			tech_127mm_guns_2 = 1

			tech_point_defense_system = 1
			tech_point_defense_system_1 = 1
			tech_point_defense_system_2 = 1
			tech_point_defense_system_3 = 1

			tech_missile_systems = 1
			tech_turret_missiles_surface = 1
			tech_turret_missiles_surface_1 = 1
			tech_turret_missiles_surface_2 = 1

			tech_turret_missiles_aa = 1
			tech_turret_missiles_aa_1 = 1
			tech_turret_missiles_aa_2 = 1

			tech_vls_surface = 1
			tech_vls_surface_1 = 1
			tech_vls_surface_2 = 1

			tech_vls_aa = 1
			tech_vls_aa_1 = 1
			tech_vls_aa_2 = 1

			tech_torpedoes = 1
			tech_torpedoes_1 = 1
			tech_torpedoes_2 = 1
			tech_torpedoes_3 = 1

			tech_mtg_landing_craft = 1
		}
	}
	set_popularities = {
		democratic = 19.0
		communism = 0.0
		fascism = 0.0
		neutrality = 1.0
		nationalist = 80.0
	}
	set_politics = {
		ruling_party = nationalist
		last_election = "2014.2.2"
		election_frequency = 48
		elections_allowed = no
	}

	start_politics_input = yes

	### Party Popularities
	set_variable = { party_pop_array^0 = 0 } #Western_Autocracy
	set_variable = { party_pop_array^1 = 0.19 } #conservatism
	set_variable = { party_pop_array^2 = 0 } #liberalism
	set_variable = { party_pop_array^3 = 0 } #socialism
	set_variable = { party_pop_array^4 = 0 } #Communist-State
	set_variable = { party_pop_array^5 = 0 } #anarchist_communism
	set_variable = { party_pop_array^6 = 0 } #Conservative
	set_variable = { party_pop_array^7 = 0 } #Autocracy
	set_variable = { party_pop_array^8 = 0 } #Mod_Vilayat_e_Faqih
	set_variable = { party_pop_array^9 = 0 } #Vilayat_e_Faqih
	set_variable = { party_pop_array^10 = 0 } #Kingdom
	set_variable = { party_pop_array^11 = 0 } #Caliphate
	set_variable = { party_pop_array^12 = 0 } #Neutral_Muslim_Brotherhood
	set_variable = { party_pop_array^13 = 0 } #Neutral_Autocracy
	set_variable = { party_pop_array^14 = 0.1 } #Neutral_conservatism
	set_variable = { party_pop_array^15 = 0 } #oligarchism
	set_variable = { party_pop_array^16 = 0 } #Neutral_Libertarian
	set_variable = { party_pop_array^17 = 0 } #Neutral_green
	set_variable = { party_pop_array^18 = 0 } #neutral_Social
	set_variable = { party_pop_array^19 = 0 } #Neutral_Communism
	set_variable = { party_pop_array^20 = 0 } #Nat_Populism
	set_variable = { party_pop_array^21 = 0 } #Nat_Fascism
	set_variable = { party_pop_array^22 = 0.59 } #Nat_Autocracy
	set_variable = { party_pop_array^23 = 0.01 } #Monarchist

	### Ruling Party
	add_to_array = { ruling_party = 22 }

	startup_politics = yes

	create_country_leader = {
		name = "Prayuth Chan-O-Cha"
		picture = "Portrait_Prayut_Chan_ocha.dds"
		ideology = Nat_Autocracy
		traits = {
			military_career
			nationalist_Nat_Autocracy
			pro_china
			capable
			ruthless
		}
	}
	
	retire_character = SIA_surayud_chulanont
	retire_character = SIA_somtat_attanand
	retire_character = SIA_chaiyasit_shinawatra
	retire_character = SIA_prawit_wongsuwan
	retire_character = SIA_sonthi_boonyaratglin
	retire_character = SIA_anupong_paochinda
	retire_character = SIA_thanasak_patimaprakorn
	retire_character = SIA_sanan_tuatip
	retire_character = SIA_pong_manesilp
	retire_character = SIA_kongsak_vantana
	retire_character = SIA_chalerm_choomchuensook
	retire_character = SIA_chalit_pukbhasuk
	retire_character = SIA_thira_hao_charoen
	retire_character = SIA_prasert_boonsong
	retire_character = SIA_taweesak_somapha
	retire_character = SIA_chumpol_patchusanont
	retire_character = SIA_sathiraphan_keyanon
	
	recruit_character = SIA_chalermchai_sitthisart
	recruit_character = SIA_thanchaiyan_srisuwan
	recruit_character = SIA_apirat_kongsompong
	recruit_character = SIA_narongphan_jitkaewthae
	recruit_character = SIA_chalermpol_srisawat
	recruit_character = SIA_pornpipat_benyasri
	recruit_character = SIA_johm_rungswang
	recruit_character = SIA_chaiyapruk_didyasarin
	recruit_character = SIA_manat_wongwat
	recruit_character = SIA_airbull_suttiwan
	recruit_character = SIA_napadej_dhupatemiya
	recruit_character = SIA_na_arreenich
	recruit_character = SIA_naris_pratumsuwan
	recruit_character = SIA_luechai_rutdit
	recruit_character = SIA_chatchai_sriworakan
	recruit_character = SIA_somprasong_nilsamai
	
	#############################################
	#MTG Variants
	##############
	#if = {
	#	limit = { has_dlc = "Man the Guns" }
	#}
	#############################################
}